what is the difference between molecule and compound